home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Visual Basic 5.0 (2nd Edition) / Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso / Source / WinTlb / OLECTL.IDL < prev    next >
Text File  |  1997-02-06  |  19KB  |  526 lines

  1. ////
  2. //
  3. // olectl.h     OLE Control interfaces
  4. //
  5. //              OLE Version 2.0
  6. //
  7. //              Copyright (c) 1992-1996, Microsoft Corp. All rights reserved.
  8. //
  9. ////
  10.  
  11.  
  12. #ifndef _OLECTL_H_
  13. #define _OLECTL_H_
  14.  
  15. // include <ocidl.h>
  16.  
  17.  
  18. ////
  19. // OCPFIPARAMS structure - parameters for OleCreatePropertyFrameIndirect
  20.  
  21. typedef struct OCPFIPARAMS {
  22.     ULONG cbStructSize;
  23.     HWND hWndOwner;
  24.     int x;
  25.     int y;
  26.     LPCOLESTR lpszCaption;
  27.     ULONG cObjects;
  28.     LPUNKNOWN * lplpUnk;
  29.     ULONG cPages;
  30.     CLSID * lpPages;
  31.     LCID lcid;
  32.     DISPID dispidInitialProperty;
  33. } OCPFIPARAMS, * LPOCPFIPARAMS;
  34.  
  35.  
  36. ////
  37. // FONTDESC structure
  38.  
  39. typedef struct FONTDESC {
  40.     UINT cbSizeofstruct;
  41.     LPOLESTR lpstrName;
  42.     CY cySize;
  43.     SHORT sWeight;
  44.     SHORT sCharset;
  45.     BOOL fItalic;
  46.     BOOL fUnderline;
  47.     BOOL fStrikethrough;
  48. } FONTDESC, * LPFONTDESC;
  49.  
  50.  
  51. ////
  52. // PICTDESC structure
  53.  
  54. typedef struct PICTDESC {
  55.     UINT cbSizeofstruct;
  56.     UINT picType;
  57.     HBITMAP   hgdiobj;      // Bitmap, icon, cursor, or metafile
  58.     HPALETTE  hPalOrXYExt;  // Bitmap hPal or metafile xExt and yExt
  59. } PICTDESC, * LPPICTDESC;
  60.  
  61. typedef struct PICTDESCBMP {
  62.     UINT cbSizeofstruct;
  63.     UINT picType;
  64.     HBITMAP   hbitmap;        // Bitmap
  65.     HPALETTE  hpal;           // Accompanying palette
  66. } PICTDESCBMP, * LPPICTDESCBMP;
  67.  
  68. typedef struct PICTDESCMETA {
  69.     UINT cbSizeofstruct;
  70.     UINT picType;
  71.     HMETAFILE hmeta;          // Metafile or enhanced metafile
  72.     int       xExt;
  73.     int       yExt;           // Extent
  74. } PICTDESCMETA, * LPPICTDESCMETA;
  75.  
  76. typedef struct PICTDESCICO {
  77.     UINT cbSizeofstruct;
  78.     UINT picType;
  79.     HICON hicon;              // Icon
  80.     UINT  reserved; 
  81. } PICTDESCICO, * LPPICTDESCICO;
  82.  
  83.  
  84. ////
  85. // Typedefs for standard scalar types
  86.  
  87. typedef long OLE_XPOS_PIXELS;
  88. typedef long OLE_YPOS_PIXELS;
  89. typedef long OLE_XSIZE_PIXELS;
  90. typedef long OLE_YSIZE_PIXELS;
  91. typedef float OLE_XPOS_CONTAINER;
  92. typedef float OLE_YPOS_CONTAINER;
  93. typedef float OLE_XSIZE_CONTAINER;
  94. typedef float OLE_YSIZE_CONTAINER;
  95. typedef enum { 
  96.     triUnchecked = 0, 
  97.     triChecked = 1, 
  98.     triGray = 2 
  99. } OLE_TRISTATE;
  100. typedef VARIANT_BOOL OLE_OPTEXCLUSIVE;
  101. typedef VARIANT_BOOL OLE_CANCELBOOL;
  102. typedef VARIANT_BOOL OLE_ENABLEDEFAULTBOOL;
  103.  
  104. // OLE control function entries and constants
  105. [
  106. #ifdef UNICODE
  107. uuid(64675064-3A82-101B-8181-00AA003743D3),
  108. #else
  109. uuid(64674064-3A82-101B-8181-00AA003743D3),
  110. #endif
  111. helpstring("OLE Control Functions"),
  112. dllname("OLEPRO32.DLL")
  113. ]
  114. module OleCtl {
  115.  
  116.  
  117.     /* Ignore interface HRESULT codes
  118.  
  119.     ////
  120.     // FACILITY_CONTROL status codes
  121.  
  122.     //define FACILITY_CONTROL 0xa
  123.  
  124.     //define = 0x800A0000 + n) MAKE_SCODE(SEVERITY_ERROR, FACILITY_CONTROL, n)
  125.     
  126.     const DWORD CTL_E_ILLEGALFUNCTIONCALL       = 0x800A0000 + 5;
  127.     const DWORD CTL_E_OVERFLOW                  = 0x800A0000 + 6;
  128.     const DWORD CTL_E_OUTOFMEMORY               = 0x800A0000 + 7;
  129.     const DWORD CTL_E_DIVISIONBYZERO            = 0x800A0000 + 11;
  130.     const DWORD CTL_E_OUTOFSTRINGSPACE          = 0x800A0000 + 14;
  131.     const DWORD CTL_E_OUTOFSTACKSPACE           = 0x800A0000 + 28;
  132.     const DWORD CTL_E_BADFILENAMEORNUMBER       = 0x800A0000 + 52;
  133.     const DWORD CTL_E_FILENOTFOUND              = 0x800A0000 + 53;
  134.     const DWORD CTL_E_BADFILEMODE               = 0x800A0000 + 54;
  135.     const DWORD CTL_E_FILEALREADYOPEN           = 0x800A0000 + 55;
  136.     const DWORD CTL_E_DEVICEIOERROR             = 0x800A0000 + 57;
  137.     const DWORD CTL_E_FILEALREADYEXISTS         = 0x800A0000 + 58;
  138.     const DWORD CTL_E_BADRECORDLENGTH           = 0x800A0000 + 59;
  139.     const DWORD CTL_E_DISKFULL                  = 0x800A0000 + 61;
  140.     const DWORD CTL_E_BADRECORDNUMBER           = 0x800A0000 + 63;
  141.     const DWORD CTL_E_BADFILENAME               = 0x800A0000 + 64;
  142.     const DWORD CTL_E_TOOMANYFILES              = 0x800A0000 + 67;
  143.     const DWORD CTL_E_DEVICEUNAVAILABLE         = 0x800A0000 + 68;
  144.     const DWORD CTL_E_PERMISSIONDENIED          = 0x800A0000 + 70;
  145.     const DWORD CTL_E_DISKNOTREADY              = 0x800A0000 + 71;
  146.     const DWORD CTL_E_PATHFILEACCESSERROR       = 0x800A0000 + 75;
  147.     const DWORD CTL_E_PATHNOTFOUND              = 0x800A0000 + 76;
  148.     const DWORD CTL_E_INVALIDPATTERNSTRING      = 0x800A0000 + 93;
  149.     const DWORD CTL_E_INVALIDUSEOFNULL          = 0x800A0000 + 94;
  150.     const DWORD CTL_E_INVALIDFILEFORMAT         = 0x800A0000 + 321;
  151.     const DWORD CTL_E_INVALIDPROPERTYVALUE      = 0x800A0000 + 380;
  152.     const DWORD CTL_E_INVALIDPROPERTYARRAYINDEX = 0x800A0000 + 381;
  153.     const DWORD CTL_E_SETNOTSUPPORTEDATRUNTIME  = 0x800A0000 + 382;
  154.     const DWORD CTL_E_SETNOTSUPPORTED           = 0x800A0000 + 383;
  155.     const DWORD CTL_E_NEEDPROPERTYARRAYINDEX    = 0x800A0000 + 385;
  156.     const DWORD CTL_E_SETNOTPERMITTED           = 0x800A0000 + 387;
  157.     const DWORD CTL_E_GETNOTSUPPORTEDATRUNTIME  = 0x800A0000 + 393;
  158.     const DWORD CTL_E_GETNOTSUPPORTED           = 0x800A0000 + 394;
  159.     const DWORD CTL_E_PROPERTYNOTFOUND          = 0x800A0000 + 422;
  160.     const DWORD CTL_E_INVALIDCLIPBOARDFORMAT    = 0x800A0000 + 460;
  161.     const DWORD CTL_E_INVALIDPICTURE            = 0x800A0000 + 481;
  162.     const DWORD CTL_E_PRINTERERROR              = 0x800A0000 + 482;
  163.     const DWORD CTL_E_CANTSAVEFILETOTEMP        = 0x800A0000 + 735;
  164.     const DWORD CTL_E_SEARCHTEXTNOTFOUND        = 0x800A0000 + 744;
  165.     const DWORD CTL_E_REPLACEMENTSTOOLONG       = 0x800A0000 + 746;
  166.  
  167.     //define CUSTOM_CTL_SCODE(n) MAKE_SCODE(SEVERITY_ERROR, FACILITY_CONTROL, n)
  168.     //define CTL_E_CUSTOM_FIRST              CUSTOM_CTL_SCODE(600)
  169.  
  170.  
  171.     ////
  172.     // IClassFactory2 status codes
  173.  
  174.     //define CLASS_E_NOTLICENSED         (CLASSFACTORY_E_FIRST+2)
  175.     // class is not licensed for use
  176.  
  177.  
  178.     ////
  179.     // IConnectionPoint status codes
  180.  
  181.     //define CONNECT_E_FIRST    MAKE_SCODE(SEVERITY_ERROR,   FACILITY_ITF, 0x0200)
  182.     const DWORD CONNECT_E_LAST     MAKE_SCODE(SEVERITY_ERROR,   FACILITY_ITF, 0x020F)
  183.     const DWORD CONNECT_S_FIRST    MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
  184.     const DWORD CONNECT_S_LAST     MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
  185.  
  186.     const DWORD CONNECT_E_NOCONNECTION      (CONNECT_E_FIRST+0)
  187.     // there is no connection for this connection id
  188.  
  189.     const DWORD CONNECT_E_ADVISELIMIT       (CONNECT_E_FIRST+1)
  190.     // this implementation's limit for advisory connections has been reached
  191.  
  192.     const DWORD CONNECT_E_CANNOTCONNECT     (CONNECT_E_FIRST+2)
  193.     // connection attempt failed
  194.  
  195.     const DWORD CONNECT_E_OVERRIDDEN        (CONNECT_E_FIRST+3)
  196.     // must use a derived interface to connect
  197.  
  198.  
  199.     ////
  200.     // DllRegisterServer/DllUnregisterServer status codes
  201.  
  202.     const DWORD SELFREG_E_FIRST    MAKE_SCODE(SEVERITY_ERROR,   FACILITY_ITF, 0x0200)
  203.     const DWORD SELFREG_E_LAST     MAKE_SCODE(SEVERITY_ERROR,   FACILITY_ITF, 0x020F)
  204.     const DWORD SELFREG_S_FIRST    MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
  205.     const DWORD SELFREG_S_LAST     MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
  206.  
  207.     const DWORD SELFREG_E_TYPELIB           (SELFREG_E_FIRST+0)
  208.     // failed to register/unregister type library
  209.  
  210.     const DWORD SELFREG_E_CLASS             (SELFREG_E_FIRST+1)
  211.     // failed to register/unregister class
  212.  
  213.  
  214.     ////
  215.     // IPerPropertyBrowsing status codes
  216.  
  217.     const DWORD PERPROP_E_FIRST    MAKE_SCODE(SEVERITY_ERROR,   FACILITY_ITF, 0x0200)
  218.     const DWORD PERPROP_E_LAST     MAKE_SCODE(SEVERITY_ERROR,   FACILITY_ITF, 0x020F)
  219.     const DWORD PERPROP_S_FIRST    MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x0200)
  220.     const DWORD PERPROP_S_LAST     MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x020F)
  221.  
  222.     const DWORD PERPROP_E_NOPAGEAVAILABLE   (PERPROP_E_FIRST+0)
  223.     // no page available for requested property
  224.     */
  225.  
  226.     // PICTYPE constants 
  227.     const DWORD PICTYPE_UNINITIALIZED   = -1;
  228.     const DWORD PICTYPE_NONE            = 0;
  229.     const DWORD PICTYPE_BITMAP          = 1;
  230.     const DWORD PICTYPE_METAFILE        = 2;
  231.     const DWORD PICTYPE_ICON            = 3;
  232.     const DWORD PICTYPE_ENHMETAFILE     = 4;
  233.  
  234.     /* 
  235.     ////
  236.     // OLEMISC_ constants (they are also defined in the latest oleidl.h)
  237.  
  238.     const DWORD OLEMISC_INVISIBLEATRUNTIME            0x00000400L
  239.     const DWORD OLEMISC_ALWAYSRUN                    0x00000800L
  240.     const DWORD OLEMISC_ACTSLIKEBUTTON                0x00001000L
  241.     const DWORD OLEMISC_ACTSLIKELABEL                0x00002000L
  242.     const DWORD OLEMISC_NOUIACTIVATE                0x00004000L
  243.     const DWORD OLEMISC_ALIGNABLE                    0x00008000L
  244.     const DWORD OLEMISC_SIMPLEFRAME                    0x00010000L
  245.     const DWORD OLEMISC_SETCLIENTSITEFIRST            0x00020000L
  246.     const DWORD OLEMISC_IMEMODE                        0x00040000L
  247.     const DWORD OLEMISC_IGNOREACTIVATEWHENVISIBLE    0x00080000L
  248.     const DWORD OLEMISC_NOTMINIMUMNOTIFY            0x00100000L
  249.     const DWORD OLEMISC_SUPPORTSMULTILEVELUNDO        0x00200000L
  250.     const DWORD OLEMISC_WANTSTOMENUMERGE            0x00400000L
  251.  
  252.  
  253.  
  254.     ////
  255.     // OLEIVERB_ constants
  256.  
  257.     const DWORD OLEIVERB_PROPERTIES (-7L)
  258.  
  259.     ////
  260.     // Variant type (VT_) tags for property sets
  261.  
  262.     const DWORD VT_STREAMED_PROPSET 73  //       [P]  Stream contains a property set
  263.     const DWORD VT_STORED_PROPSET   74  //       [P]  Storage contains a property set
  264.     const DWORD VT_BLOB_PROPSET     75  //       [P]  Blob contains a property set
  265.     const DWORD VT_VERBOSE_ENUM     76  //       [P]  Enum value with text string
  266.  
  267.  
  268.     ////
  269.     // Variant type (VT_) tags that are just aliases for others
  270.  
  271.     const DWORD VT_COLOR            VT_I4
  272.     const DWORD VT_XPOS_PIXELS      VT_I4
  273.     const DWORD VT_YPOS_PIXELS      VT_I4
  274.     const DWORD VT_XSIZE_PIXELS     VT_I4
  275.     const DWORD VT_YSIZE_PIXELS     VT_I4
  276.     const DWORD VT_XPOS_HIMETRIC    VT_I4
  277.     const DWORD VT_YPOS_HIMETRIC    VT_I4
  278.     const DWORD VT_XSIZE_HIMETRIC   VT_I4
  279.     const DWORD VT_YSIZE_HIMETRIC   VT_I4
  280.     const DWORD VT_TRISTATE         VT_I2
  281.     const DWORD VT_OPTEXCLUSIVE     VT_BOOL
  282.     const DWORD VT_FONT             VT_DISPATCH
  283.     const DWORD VT_PICTURE          VT_DISPATCH
  284.  
  285.     const DWORD VT_HANDLE           VT_I4
  286.  
  287.     ////
  288.     // Reflected Window Message IDs
  289.  
  290.     const DWORD OCM__BASE           (WM_USER+0x1c00)
  291.     const DWORD OCM_COMMAND         (OCM__BASE + WM_COMMAND)
  292.  
  293.     const DWORD OCM_CTLCOLORBTN     (OCM__BASE + WM_CTLCOLORBTN)
  294.     const DWORD OCM_CTLCOLOREDIT    (OCM__BASE + WM_CTLCOLOREDIT)
  295.     const DWORD OCM_CTLCOLORDLG     (OCM__BASE + WM_CTLCOLORDLG)
  296.     const DWORD OCM_CTLCOLORLISTBOX (OCM__BASE + WM_CTLCOLORLISTBOX)
  297.     const DWORD OCM_CTLCOLORMSGBOX  (OCM__BASE + WM_CTLCOLORMSGBOX)
  298.     const DWORD OCM_CTLCOLORSCROLLBAR   (OCM__BASE + WM_CTLCOLORSCROLLBAR)
  299.     const DWORD OCM_CTLCOLORSTATIC  (OCM__BASE + WM_CTLCOLORSTATIC)
  300.  
  301.     const DWORD OCM_DRAWITEM        (OCM__BASE + WM_DRAWITEM)
  302.     const DWORD OCM_MEASUREITEM     (OCM__BASE + WM_MEASUREITEM)
  303.     const DWORD OCM_DELETEITEM      (OCM__BASE + WM_DELETEITEM)
  304.     const DWORD OCM_VKEYTOITEM      (OCM__BASE + WM_VKEYTOITEM)
  305.     const DWORD OCM_CHARTOITEM      (OCM__BASE + WM_CHARTOITEM)
  306.     const DWORD OCM_COMPAREITEM     (OCM__BASE + WM_COMPAREITEM)
  307.     const DWORD OCM_HSCROLL         (OCM__BASE + WM_HSCROLL)
  308.     const DWORD OCM_VSCROLL         (OCM__BASE + WM_VSCROLL)
  309.     const DWORD OCM_PARENTNOTIFY    (OCM__BASE + WM_PARENTNOTIFY)
  310.  
  311.     const DWORD OCM_NOTIFY            (OCM__BASE + WM_NOTIFY)
  312.     */
  313.  
  314.     ////
  315.     // Self-registration APIs (to be implemented by server DLL)
  316.  
  317.     // Note that HRESULT returns have been changed to LONG for VB
  318.  
  319.     [
  320.     usesgetlasterror,
  321.     entry("DllRegisterServer"),
  322.     helpstring("Instructs an in-process server to create its registry entries for all classes supported in this server module"),
  323.     ]
  324.     // HRESULT
  325.     LONG WINAPI DllRegisterServer(void);
  326.  
  327.     [
  328.     usesgetlasterror,
  329.     entry("DllUnregisterServer"),
  330.     helpstring("Instructs an in-process server to remove only those entries created through DllRegisterServer"),
  331.     ]
  332.     // HRESULT
  333.     LONG WINAPI DllUnregisterServer(void);
  334.  
  335.  
  336.     /*
  337.     ////
  338.     // Property frame APIs
  339.  
  340.     // HRESULT
  341.     LONG WINAPI OleCreatePropertyFrame(HWND hwndOwner, UINT x, UINT y,
  342.         LPCOLESTR lpszCaption, ULONG cObjects, LPUNKNOWN * ppUnk, ULONG cPages,
  343.         LPCLSID pPageClsID, LCID lcid, DWORD dwReserved, LPVOID pvReserved);
  344.  
  345.     LONG WINAPI OleCreatePropertyFrameIndirect(LPOCPFIPARAMS lpParams);
  346.     */
  347.  
  348.     ////
  349.     // Standard type APIs
  350.  
  351.     [
  352.     usesgetlasterror,
  353.     entry("OleTranslateColor"),
  354.     helpstring("Converts an OLE_COLOR type to a COLORREF"),
  355.     ]
  356.     // HRESULT
  357.     LONG WINAPI OleTranslateColor(OLE_COLOR clr, HPALETTE hpal, 
  358.                                   COLORREF* lpcolorref);
  359.  
  360.     [
  361.     usesgetlasterror,
  362.     entry("OleCreateFontIndirect"),
  363.     helpstring("Creates and initializes a standard font object using an initial description of the font's properties in a FONTDESC structure"),
  364.     ]
  365.     // HRESULT
  366.     LONG WINAPI OleCreateFontIndirect(LPFONTDESC lpFontDesc, 
  367.                                       REFIID * riid, IFont * ifont);
  368.  
  369.     [
  370.     usesgetlasterror,
  371.     entry("OleCreatePictureIndirect"),
  372.     helpstring("Creates a new picture object initialized according to a PICTDESC structure"),
  373.     ]
  374.     // HRESULT
  375.     LONG WINAPI OleCreatePictureIndirect(PICTDESC * lpPictDesc,
  376.                                          REFIID * riid, BOOL fOwn,
  377.                                          IPicture * ipic);
  378.  
  379.     [
  380.     usesgetlasterror,
  381.     entry("OleCreatePictureIndirect"),
  382.     helpstring("Creates a new picture object initialized according to a PICTDESCBMP structure (BITMAP alias)"),
  383.     ]
  384.     HRESULT WINAPI OleCreatePictureIndirectBmp(LPPICTDESCBMP lpPictDescBmp, 
  385.                                                REFIID * riid, BOOL fOwn, 
  386.                                                IPicture * ipic);
  387.  
  388.     [
  389.     usesgetlasterror,
  390.     entry("OleCreatePictureIndirect"),
  391.     helpstring("Creates a new picture object initialized according to a PICTDESCBMP structure (ICON alias)"),
  392.     ]
  393.     HRESULT WINAPI OleCreatePictureIndirectIco(LPPICTDESCICO lpPictDescIco, 
  394.                                                REFIID * riid, BOOL fOwn, 
  395.                                                IPicture * ipic);
  396.  
  397.     [
  398.     usesgetlasterror,
  399.     entry("OleCreatePictureIndirect"),
  400.     helpstring("Creates a new picture object initialized according to a PICTDESCBMP structure (METAFILE alias)"),
  401.     ]
  402.     HRESULT WINAPI OleCreatePictureIndirectMeta(LPPICTDESCMETA lpPictDescMeta, 
  403.                                                 REFIID * riid, BOOL fOwn,
  404.                                                 IUnknown * ipic);
  405.  
  406.     [
  407.     usesgetlasterror,
  408.     entry("OleLoadPicture"),
  409.     helpstring("Creates a new picture object and initializes it from the contents of a stream"),
  410.     ]
  411.     HRESULT WINAPI OleLoadPicture(LPSTREAM lpstream, LONG lSize, 
  412.                                    BOOL fRunmode, REFIID * riid, 
  413.                                   IPicture * ipic);
  414.  
  415.     /*
  416.     // DIFFERENT:   This OleLoadPicturePath function signature is only for valid if
  417.     //              ASYNCPICTURE is defined.
  418.     #if defined(ASYNCPICTURE)
  419.     // HRESULT
  420.     LONG WINAPI OleLoadPicturePath(LPOLESTR szUrl, 
  421.                                       LPUNKNOWN punkCaller, 
  422.                                       DWORD dwFlags, 
  423.                                       OLE_COLOR clrBackgnd, 
  424.                                       REFIID * riid, IPicture * ipic);
  425.     #endif  // if defined(ASYNCPICTURE)
  426.     */
  427.  
  428.     const DWORD OPCTPATH_DEFAULTS     = 0; // SYNC | AUTHORTIME | OPAQUE
  429.     const DWORD OPCTPATH_ASYNCHRONOUS = 1;
  430.     const DWORD OPCTPATH_RUNTIME      = 2;
  431.     const DWORD OPCTPATH_RESERVED1    = 4;
  432.  
  433.     [
  434.     usesgetlasterror,
  435.     entry("OleIconToCursor"),
  436.     helpstring("Converts an icon to a cursor"),
  437.     ]
  438.     HCURSOR WINAPI OleIconToCursor(HINSTANCE hinstExe, HICON hIcon);
  439.  
  440.     /*
  441.     ////
  442.     //  Standard dispatch ID constants
  443.  
  444.     const DWORD DISPID_AUTOSIZE                 (-500)
  445.     const DWORD DISPID_BACKCOLOR                (-501)
  446.     const DWORD DISPID_BACKSTYLE                (-502)
  447.     const DWORD DISPID_BORDERCOLOR              (-503)
  448.     const DWORD DISPID_BORDERSTYLE              (-504)
  449.     const DWORD DISPID_BORDERWIDTH              (-505)
  450.     const DWORD DISPID_DRAWMODE                 (-507)
  451.     const DWORD DISPID_DRAWSTYLE                (-508)
  452.     const DWORD DISPID_DRAWWIDTH                (-509)
  453.     const DWORD DISPID_FILLCOLOR                (-510)
  454.     const DWORD DISPID_FILLSTYLE                (-511)
  455.     const DWORD DISPID_FONT                     (-512)
  456.     const DWORD DISPID_FORECOLOR                (-513)
  457.     const DWORD DISPID_ENABLED                  (-514)
  458.     const DWORD DISPID_HWND                     (-515)
  459.     const DWORD DISPID_TABSTOP                  (-516)
  460.     const DWORD DISPID_TEXT                     (-517)
  461.     const DWORD DISPID_CAPTION                  (-518)
  462.     const DWORD DISPID_BORDERVISIBLE            (-519)
  463.     const DWORD DISPID_APPEARANCE               (-520)
  464.     const DWORD DISPID_READYSTATE               (-525)
  465.  
  466.     const DWORD DISPID_REFRESH                  (-550)
  467.     const DWORD DISPID_DOCLICK                  (-551)
  468.     const DWORD DISPID_ABOUTBOX                 (-552)
  469.  
  470.     const DWORD DISPID_CLICK                    (-600)
  471.     const DWORD DISPID_DBLCLICK                 (-601)
  472.     const DWORD DISPID_KEYDOWN                  (-602)
  473.     const DWORD DISPID_KEYPRESS                 (-603)
  474.     const DWORD DISPID_KEYUP                    (-604)
  475.     const DWORD DISPID_MOUSEDOWN                (-605)
  476.     const DWORD DISPID_MOUSEMOVE                (-606)
  477.     const DWORD DISPID_MOUSEUP                  (-607)
  478.     const DWORD DISPID_ERROREVENT               (-608)
  479.     const DWORD DISPID_READYSTATECHANGE         (-609)
  480.  
  481.     const DWORD DISPID_AMBIENT_BACKCOLOR        (-701)
  482.     const DWORD DISPID_AMBIENT_DISPLAYNAME      (-702)
  483.     const DWORD DISPID_AMBIENT_FONT             (-703)
  484.     const DWORD DISPID_AMBIENT_FORECOLOR        (-704)
  485.     const DWORD DISPID_AMBIENT_LOCALEID         (-705)
  486.     const DWORD DISPID_AMBIENT_MESSAGEREFLECT   (-706)
  487.     const DWORD DISPID_AMBIENT_SCALEUNITS       (-707)
  488.     const DWORD DISPID_AMBIENT_TEXTALIGN        (-708)
  489.     const DWORD DISPID_AMBIENT_USERMODE         (-709)
  490.     const DWORD DISPID_AMBIENT_UIDEAD           (-710)
  491.     const DWORD DISPID_AMBIENT_SHOWGRABHANDLES  (-711)
  492.     const DWORD DISPID_AMBIENT_SHOWHATCHING     (-712)
  493.     const DWORD DISPID_AMBIENT_DISPLAYASDEFAULT (-713)
  494.     const DWORD DISPID_AMBIENT_SUPPORTSMNEMONICS (-714)
  495.     const DWORD DISPID_AMBIENT_AUTOCLIP         (-715)
  496.     const DWORD DISPID_AMBIENT_APPEARANCE       (-716)
  497.  
  498.     const DWORD DISPID_Name                     (-800)
  499.     const DWORD DISPID_Delete                   (-801)
  500.     const DWORD DISPID_Object                   (-802)
  501.     const DWORD DISPID_Parent                   (-803)
  502.  
  503.     ////
  504.     // Dispatch ID constants for font and picture types
  505.  
  506.     const DWORD DISPID_FONT_NAME    0
  507.     const DWORD DISPID_FONT_SIZE    2
  508.     const DWORD DISPID_FONT_BOLD    3
  509.     const DWORD DISPID_FONT_ITALIC  4
  510.     const DWORD DISPID_FONT_UNDER   5
  511.     const DWORD DISPID_FONT_STRIKE  6
  512.     const DWORD DISPID_FONT_WEIGHT  7
  513.     const DWORD DISPID_FONT_CHARSET 8
  514.  
  515.     const DWORD DISPID_PICT_HANDLE  0
  516.     const DWORD DISPID_PICT_HPAL    2
  517.     const DWORD DISPID_PICT_TYPE    3
  518.     const DWORD DISPID_PICT_WIDTH   4
  519.     const DWORD DISPID_PICT_HEIGHT  5
  520.     const DWORD DISPID_PICT_RENDER  6
  521.     */
  522.  
  523. }
  524.  
  525. #endif // _OLECTL_H_
  526.